from django.conf.urls import patterns, include, url
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', 'finance.views.index', name='home'),
    url(r'^login/$', 'finance.views.login', name='login'),
    url(r'^dologin/$', 'finance.views.dologin', name='dologin'),
    url(r'^orders/$', 'finance.views.order_list', name='order_list'),
    url(r'^detail/$', 'finance.views.order_detail', name='detail'),

    # url(r'^XFGWWebServer/', include('XFGWWebServer.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    url(r'^auth/login/$','auth.views.login'),
    url(r'^auth/logout/$','auth.views.logout'),
    url(r'^auth/checked/$','auth.views.token_checked'),
    url(r'^signing/add/$','signing.views.add'),
    url(r'^signing/modify/$','signing.views.modify'),
    url(r'^signing/sales/$','signing.views.sales'),
    url(r'^signing/order/$','signing.views.order'),
    url(r'^signing/brand/$','signing.views.brand'),
    url(r'^signing/detail/$','signing.views.detail'),
    url(r'^media/$','media.views.media'),
    # url(r'^$','signing.views.order'),


)

if settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root':settings.MEDIA_ROOT}),
    )
